<?php
declare (strict_types = 1);

namespace app\api\controller;

use app\api\model\Goods;
use think\Request;

class Amoy
{
       public function amoypasswordDo()
       {
             $user_id = input('user_id');
             $good_id = input('good_id');
             $goods= Goods::where('good_id',$good_id)->find();
             $goods_name = $goods['good_name'];
             $data = encrypt($goods_name,$user_id);
             return json(['code'=>200,'msg'=>'生成成功','data'=>$data]);
       }
}
